<?php
// 开启session
session_start();
include 'Captcha.php';
$captcha = new Captcha;
$code = $captcha->render();
// file_put_contents('a.php', $code);
// 将验证码存储到session中
$_SESSION['captcha'] = $code;